package BeanUtils.T6;

import org.apache.commons.beanutils.BeanUtils;

import java.lang.reflect.InvocationTargetException;
import java.util.Map;

public class MyBeanUtils {

    public static void populate(Object obj, Map<String,String[]> map) throws InvocationTargetException, IllegalAccessException {
        for (String s : map.keySet()) {
            BeanUtils.setProperty(obj,s,map.get(s));
        }
    }
}
